package com.by.controller;


import com.by.common.core.bean.ResultBean;
import com.by.common.core.controller.BaseController;
import com.by.query.StreamQuery;
import com.by.remote.system.StreamRemote;
import com.by.service.StreamService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 直播控制层
 */
@RestController
@Api(tags = "直播接口")
public class StreamController extends BaseController implements StreamRemote {
    @Autowired
    StreamService streamService;


    @Override
    public ResultBean query(StreamQuery query) {
        return success("直播列表",streamService.query(query.toMap()));
    }
}
